﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="passwordReset.aspx.cs" Inherits="Project.passwordReset" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table>
            <tr>
                <td>Enter The New Password:</td>
                <td><asp:TextBox ID="txt_password" runat="server" TextMode="Password"></asp:TextBox></td>
                <td><asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Please Enter Password" ControlToValidate="txt_password"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txt_reTypePassword" ErrorMessage="Your password must have atleast 8 characters including one upercase, one lowercase and one digit." ValidationExpression="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>Re-type password:</td>
                <td><asp:TextBox ID="txt_reTypePassword" runat="server" TextMode="Password"></asp:TextBox></td>
                <td> 
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Please Enter Confirm Password" ControlToValidate="txt_reTypePassword"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Password doesn't match" ControlToCompare="txt_password" ControlToValidate="txt_reTypePassword"></asp:CompareValidator>

                </td>

            </tr>
            <tr>
                <td><asp:Button ID="btn_resetPassword" runat="server" Text="Submit" OnClick="btn_resetPassword_Click" />
                    <asp:Label ID="lbl_userName" runat="server" Text=""></asp:Label>
                    <asp:Label ID="lbl_error" runat="server" Text=""></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
